const mongoose = require('mongoose')
const pandSchema = new mongoose.Schema({
    pand_url: {
        type: String
    },
})

// 创建集合
const Pand = mongoose.model('Pand', pandSchema);

// 将用户集合做为模块成员进行导出
module.exports = Pand

function add(){
	
for(let i=0;i<6;i++){
	new Pand({
		pand_url:`http://127.0.0.1:8888/pandant/pandant${i}.png`
	},(err,data)=>{
		if(err){
			console.log(err)
		}else{
			console.log(data)
		}
	}).save()
}
	 
}

// add()